<template>
    <div class="goodsdesc-contenter">
        <h3>{{goodsdesc.title}}</h3>
        <hr>
        <div v-html="goodsdesc.content" class="content-img"></div>
    </div>
</template>

<script>
import { Toast } from "mint-ui";
export default {
    data(){
        return{
            id:this.$route.params.id,
            info:{},
            goodsdesc:[]
        }
    },
    created(){
        this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            this.$ajax
        .get("/getgoodsdesc/", {
          params: {
            ID: this.id
          }
        })
        .then(response => {

          this.goodsdesc = response.data.message[0];
          console.log(this.goodsdesc);
        })
        .catch(error => {
          console.log(error);
          Toast({
            message: "获取缩略图图片失败..."
          });
        });
        }
    }
}
</script>

<style lang="scss">
    .goodsdesc-contenter{
        padding: 4px;
        h3{
            font-size: 16px;
            color: #226aff;
            text-align: center;
            margin: 15px 0;
        }
    .content-img{
        img{
            width: 100%;
        }
    }
    }
</style>
